package com.uwantsoft.business.facade.dto.parking;

import com.uwantsoft.util.validator.IsPositiveBigDecimal;
import com.uwantsoft.util.validator.IsPositiveInteger;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Pattern;

/**
 * @author LeiPeichen.
 */
public class ParkFormDto {
    private String guid;
    @NotEmpty(message = "请输入停车场名称")
    private String name;
    @NotEmpty(message = "请输入城市名称")
    private String cityGuid;
    @Pattern(regexp = "^[+-]?\\d+\\.?\\d*$",message = "请输入正确的纬度")
    private String lat;
    @Pattern(regexp = "^[+-]?\\d+\\.?\\d*$",message = "请输入正确的经度")
    private String lng;
    @NotEmpty(message = "请输入地址")
    private String address;
    @IsPositiveInteger(message = "请输入正确的车位数量")
    private String stallNumber;
    private String registrationTime;
    @IsPositiveInteger(message = "请输入正确的小时")
    private String startPrice;
    @IsPositiveBigDecimal(message = "请输入正确的金额")
    private String unitPrice;
    @NotEmpty(message = "请输入预定说明")
    private String orderNote;
    @NotEmpty(message = "请输入排队说明")
    private String queueNote;

    public String getOrderNote() {
        return orderNote;
    }

    public void setOrderNote(String orderNote) {
        this.orderNote = orderNote;
    }

    public String getQueueNote() {
        return queueNote;
    }

    public void setQueueNote(String queueNote) {
        this.queueNote = queueNote;
    }

    public String getStartPrice() {
        return startPrice;
    }

    public void setStartPrice(String startPrice) {
        this.startPrice = startPrice;
    }

    public String getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(String unitPrice) {
        this.unitPrice = unitPrice;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCityGuid() {
        return cityGuid;
    }

    public void setCityGuid(String cityGuid) {
        this.cityGuid = cityGuid;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getLng() {
        return lng;
    }

    public void setIng(String lng) {
        this.lng = lng;
    }

    public String getStallNumber() {
        return stallNumber;
    }

    public void setStallNumber(String stallNumber) {
        this.stallNumber = stallNumber;
    }

    public String getRegistrationTime() {
        return registrationTime;
    }

    public void setRegistrationTime(String registrationTime) {
        this.registrationTime = registrationTime;
    }

    public String getGuid() {
        return guid;
    }

    public void setGuid(String guid) {
        this.guid = guid;
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }

}
